package com.rsk.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.dubbo.config.annotation.Service;
import com.rsk.dao.SysUserRoleRepository;
import com.rsk.service.SysUserRoleService;
import com.rsk.utils.algorithm.SnowflakeIdWorker;


@Service(interfaceClass = SysUserRoleService.class)
public class SysUserRoleServiceImpl implements SysUserRoleService{
	
	@Autowired
	private SysUserRoleRepository sysUserRoleRepository;

	public int saveSysUserRole(Long userId, Long roleId, Long operatorUser) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Transactional
	public int delSysUserRole(Long id, Long userId, Long operatorUser) {
		return sysUserRoleRepository.delSysUserRole(id, userId,	operatorUser);
	}
	
	
	
}
